package cn.wmw.xyy.feign;

import cn.wmw.result.JsonResult;
import cn.wmw.xyy.fallback.MediaFeignClientFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient(value = "service-media",path = "mediaFile",contextId = "MediaFeignClient",fallbackFactory = MediaFeignClientFallbackFactory.class)
public interface MediaFeignClient {
    @RequestMapping(value = "/list/{courseId}",method = RequestMethod.GET)
    JsonResult getMediaFileByCourseId(@PathVariable("courseId") Long courseId);

}
